package com.subfg.common.entity.common;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.subfg.common.util.serializer.BigDecimalSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "subfg, 支付汇率 table 模型")
public class PayChannelRate  implements Serializable {
    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "名称, 主键")
    private String name;
    @ApiModelProperty(value = "汇率")
    @JsonSerialize(using = BigDecimalSerializer.class)
    private BigDecimal rate;
    @ApiModelProperty(value = "币种符号")
    private String simple;
    @ApiModelProperty(value = "是否启用")
    private Integer enable;

}
